<%@page contentType="text/html" pageEncoding="UTF-8" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="vdab" uri="http://vdab.be/tags" %>
<c:set var="contextPath" value="${pageContext.servletContext.contextPath }"/>
<!doctype html>
<html lang="nl">
<head>
	<title>Frituur Frida – statistiek</title>
	<link rel="stylesheet" href="${contextPath}/styles/default.css"/>
</head>
<body>
	<vdab:menu/>
	<h1>URL statistieken</h1>
	<c:if test="${not empty statistiek}">
      <table>
        <caption>Request statistiek</caption>
       <thead>
       <tr>
         <th>URL</th>
         <th>aantal requests</th>
       </tr>
      </thead>
      <tbody>
        <c:forEach var="entry" items="${statistiek}">
          <tr>
            <td>${entry.key}</td>
            <td style="text-align:right;">${entry.value}</td>
          </tr>
        </c:forEach>
      </tbody>
    </table>
  </c:if>


</body>
</html>